package com.labor_management_system.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * 
 * @TableName project
 */
@TableName(value ="project")
@Data
//项目
public class Project implements Serializable {
    /**
     * 
     */

    @TableId
    @JsonProperty("projectId")
    private String projectId;


    @JsonProperty("projectName")
    private String projectName;

    /**
     * 
     */

    /**
     * 
     */
    @JsonProperty("projectCategory")
    private Integer projectCategory;

    /**
     * 
     */
    @JsonProperty("projectPhase")
    private Integer projectPhase;

    /**
     * 
     */
    @JsonProperty("projectLocation")
    private String projectLocation;

    /**
     * 
     */
    @JsonProperty("totalPrice")
    private Double totalPrice;

    /**
     * 
     */
    @JsonProperty("startDate")
    private Long startDate;

    /**
     * 
     */
    @JsonProperty("endDate")
    private Long endDate;

    /**
     * 
     */
    @JsonProperty("fullAddress")
    private String fullAddress;

    /**
     * 
     */
    @JsonProperty("dispatchWorkers")
    private Integer dispatchWorkers;

    /**
     * 
     */
    @JsonProperty("owner")
    private String owner;

    /**
     * 
     */
    @JsonProperty("phoneNumber")
    private String phoneNumber;

    @JsonProperty("teamName")
    private String teamName;

    @JsonProperty("teamId")
    private String teamId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Project other = (Project) that;
        return (this.getProjectId() == null ? other.getProjectId() == null : this.getProjectId().equals(other.getProjectId()))
            && (this.getProjectName() == null ? other.getProjectName() == null : this.getProjectName().equals(other.getProjectName()))
            && (this.getProjectCategory() == null ? other.getProjectCategory() == null : this.getProjectCategory().equals(other.getProjectCategory()))
            && (this.getProjectPhase() == null ? other.getProjectPhase() == null : this.getProjectPhase().equals(other.getProjectPhase()))
            && (this.getProjectLocation() == null ? other.getProjectLocation() == null : this.getProjectLocation().equals(other.getProjectLocation()))
            && (this.getTotalPrice() == null ? other.getTotalPrice() == null : this.getTotalPrice().equals(other.getTotalPrice()))
            && (this.getStartDate() == null ? other.getStartDate() == null : this.getStartDate().equals(other.getStartDate()))
            && (this.getEndDate() == null ? other.getEndDate() == null : this.getEndDate().equals(other.getEndDate()))
            && (this.getFullAddress() == null ? other.getFullAddress() == null : this.getFullAddress().equals(other.getFullAddress()))
            && (this.getDispatchWorkers() == null ? other.getDispatchWorkers() == null : this.getDispatchWorkers().equals(other.getDispatchWorkers()))
            && (this.getOwner() == null ? other.getOwner() == null : this.getOwner().equals(other.getOwner()))
                && (this.getTeamName() == null ? other.getOwner() == null : this.getTeamName().equals(other.getOwner()))
            && (this.getPhoneNumber() == null ? other.getPhoneNumber() == null : this.getPhoneNumber().equals(other.getPhoneNumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProjectId() == null) ? 0 : getProjectId().hashCode());
        result = prime * result + ((getProjectName() == null) ? 0 : getProjectName().hashCode());
        result = prime * result + ((getProjectCategory() == null) ? 0 : getProjectCategory().hashCode());
        result = prime * result + ((getProjectPhase() == null) ? 0 : getProjectPhase().hashCode());
        result = prime * result + ((getProjectLocation() == null) ? 0 : getProjectLocation().hashCode());
        result = prime * result + ((getTotalPrice() == null) ? 0 : getTotalPrice().hashCode());
        result = prime * result + ((getStartDate() == null) ? 0 : getStartDate().hashCode());
        result = prime * result + ((getEndDate() == null) ? 0 : getEndDate().hashCode());
        result = prime * result + ((getFullAddress() == null) ? 0 : getFullAddress().hashCode());
        result = prime * result + ((getDispatchWorkers() == null) ? 0 : getDispatchWorkers().hashCode());
        result = prime * result + ((getOwner() == null) ? 0 : getOwner().hashCode());
        result = prime * result + ((getPhoneNumber() == null) ? 0 : getPhoneNumber().hashCode());
        result = prime * result + ((getTeamName() == null) ? 0 : getTeamName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", projectId=").append(projectId);
        sb.append(", projectName=").append(projectName);
        sb.append(", projectCategory=").append(projectCategory);
        sb.append(", projectPhase=").append(projectPhase);
        sb.append(", projectLocation=").append(projectLocation);
        sb.append(", totalPrice=").append(totalPrice);
        sb.append(", startDate=").append(startDate);
        sb.append(", endDate=").append(endDate);
        sb.append(", fullAddress=").append(fullAddress);
        sb.append(", dispatchWorkers=").append(dispatchWorkers);
        sb.append(", owner=").append(owner);
        sb.append(", teamName=").append(teamName);
        sb.append(", phoneNumber=").append(phoneNumber);
        sb.append(", teamName=").append(teamName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}